public class Text8 {
    public static void main(String[] args) {
        int[] arr = {2,6,4,1};
       //int[] arr={1,2,34,3,4,5,7,23,1};
        boolean ret =fun(arr);
        System.out.println(ret);
    }
   /* public static void fun(int[] arr){
        int count =0;
        for (int i = 0; i < arr.length-2; i++) {
            if(arr[i]%2 != 0 && arr[i+1]%2 != 0 && arr[i+2]%2 != 0 ){
                count++;
            }
        }
        if(count>=1){
            System.out.println("true");
        }else{
            System.out.println("false");
        }
    }*/

    public static boolean fun(int[] arr){
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2 != 0){
                count++;
                if(count == 3){
                    return true;
                }
            }else{
                count = 0;
            }

        }
      return false;
    }
}
